package com.you.atlas.biz.place.service;

import com.you.place.dal.dao.VoteDAO;

public class VoteQueryServiceImpl implements VoteQueryService {

    private VoteDAO voteDAO;

    public void setVoteDAO(VoteDAO voteDAO) {
        this.voteDAO = voteDAO;
    }

    @Override
    public boolean checkNoteVote(Long noteId, Long memberId) {
        return voteDAO.findDown("note", noteId, memberId) != null;
    }

    @Override
    public boolean checkPhotoVote(Long albumId, Long memberId) {
        return voteDAO.findDown("photo", albumId, memberId) != null;
    }

}
